package com.ruoyi.asset.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import javax.validation.constraints.NotNull;

/**
 * 盘点记录对象 asset_stock_detail
 * 
 * @author asset
 * @date 2024-12-25
 */
@Data
public class AssetStockDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 自增长主键ID */
    @Excel(name = "盘点任务")
    private Long id;

    /** 盘点任务 */
    private Long stockId;
    private String stockStatus;

    /** 资产分类 */
    @Excel(name = "资产分类")
    private String cateName;
    private Long cateId;

    /** 资产ID */
    private Long assetId;

    /** 资产编号 */
    @Excel(name = "资产编号")
    private String assetNum;

    /** 原价值 */
    @Excel(name = "原价值")
    private BigDecimal priceOld;

    /** 当前价值 */
    @Excel(name = "当前价值")
    @NotNull
    private BigDecimal priceNew;

    /** 仓库ID */
    private Long houseId;

    /** 仓库名称 */
    @Excel(name = "仓库名称")
    private String houseName;

    /** 部门ID */
    private Long deptId;

    /** 归属部门 */
    @Excel(name = "归属部门")
    private String deptName;


    /** 是否在库 */
    @Excel(name = "是否在库", dictType = "sys_yes_no", comboReadDict = true)
    private String inStore;

    /** 使用人ID */
    private Long userId;


    /** 是否在用 */
    @Excel(name = "是否在用", dictType = "sys_yes_no", comboReadDict = true)
    private String isUse;

    /** 使用人 */
    @Excel(name = "使用人")
    private String userName;

    /** 盘点图片 */
    private String imgs;

    /** 状态 */
    @Excel(name = "状态", dictType = "asset_status", comboReadDict = true)
    private String status;

    /** 盘点时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "盘点时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss", type = Excel.Type.EXPORT)
    private Date taskTime;

}
